<?php
session_start();
include 'test_header.php';
require_once( CLASSMATE_ROOT.'/include/functions/mongo_connect.function.php' );

class test_class_response_message_process extends UnitTestCase{

	function setUp(){
		
	}
	function tearDown(){
	}
	function test_test(){

		$res_message_proc = new response_message_process();

		//添加反馈信息
		$res_message_proc->set_type( 'info' );
		$res_message_proc->set_message( 'test' );
		$res_message_proc->set_url( 'test' );

	 	 
		$check_result = ( $_SESSION['type'] == 'info' )&&
				 ( $_SESSION['message'] == 'test' )&&
				 ( $_SESSION['url'] == 'test' );	

		$this->assertTrue( $check_result );
	}
}
	

$test = new test_class_response_message_process();
$test->run( new HtmlReporter() );
